<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../依赖包/react.development.js"></script>
  <script src="../依赖包/react-dom.development.js"></script>
  <script src="../依赖包/babel.min.js"></script>
</head>

<body>
  <div id="app"></div>


  <script type="text/babel">
    let title = "abcd"
    const vDom = (
      <div>
        <h2 title={title}>{title.toLocaleUpperCase()}</h2>
        <h3>{123}---{'abc'}</h3>
        <h3>{null}--{undefined}--{true}--{false}</h3>
        <h3>{[1,2,3,4,5,6,'weqwe']}</h3>
        <h3 style={{color: 'red', fontSize: '20px'}}>style文本</h3>
        <input type="text" />
      </div>
    )
    // 渲染虚拟DOM
    ReactDOM.render(vDom, document.getElementById('app'))
  </script>
</body>

</html>